package com.helmlabs.grouper.cms.dao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.helmlabs.grouper.cms.model.Menu;
import com.helmlabs.grouper.cms.model.MenuItem;

public class MenuDaoHibernate extends HibernateDaoSupport implements MenuDao {

	public Menu get(Long id) {
		return (Menu)getHibernateTemplate().get(Menu.class, id);
	}

	public Menu save(Menu menu) {
		return (Menu)getHibernateTemplate().merge(menu);
	}
	
	public MenuItem save(MenuItem menuItem){
		return (MenuItem)getHibernateTemplate().merge(menuItem);
	}

}
